{template header}
<section class="container course">
  <div id="course-header" class="flat clearfix"> 

  
 <a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">
{if {$strStudy['photo']}}
<img src="{php echo tsXimg($strStudy['photo'],'study','50','50',$strStudy['path'],'1')}" alt="{$strStudy[studyname]}" class="pic fl" />
{else}
<img src="{SITE_URL}public/images/event_dft.jpg" alt="{$strStudy[studyname]}" class="pic fl" />
{/if}
 </a>

  <div class="fl mlm">
    <h1 class="vam">
      <a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">{$strStudy[studyname]}</a>          
{if $strStudy['ispublish'] == 1}
<span class="label" title="待完成课时的添加之后，请申请发布课程！">未发布</span> 
{elseif $strStudy['isaudit'] == 1}
<span class="label" title="课程处于审核状态！">未审核</span>   
{else}
<span class="label" title="课程处于发布状态！">已发布</span>   
{/if}          
    </h1>

    <div class="member-stats">
      <a href="{tsUrl('study','learn',array('id'=>$strStudy[studyid]))}" class="mrm">{$strStudy['count_learn']} 人学习</a>
      <em class="mrm">|</em>
      <a href="{tsUrl('study','love',array('id'=>$strStudy[studyid]))}" class="mrm">{$strStudy['count_love']} 人喜欢</a>
    </div>

    <ul class="light-nav mtm">
	
	<li {if $ac=='show'}class="current"{/if}><a href="{tsUrl('study','show',array('id'=>$strStudy[studyid]))}">课时</a></li>
	{if $strStudy['userid']==$TS_USER['userid']}
	<li {if $ac=='edit'}class="current"{/if}><a href="{tsUrl('study','edit',array('studyid'=>$strStudy['studyid'],'ts'=>'base'))}">管理</a></li>
	<li {if $ac=='add'}class="current"{/if}><a href="{tsUrl('study','add',array('id'=>$strStudy[studyid]))}">添加新课时</a></li>
	{/if}
	
    </ul>
  </div> 

  <ul class="learn-stats clearfix">
  <li><span class="num">{if $strStudy['price']==0}免费{else}{$strStudy['price']} RMB{/if}</span><span class="num-text">费用</span></li> 
    <li><span class="num"> {$strStudy['count_lesson']}</span><span class="num-text">课时</span></li>
</ul>

</div>